package design.a4_singleton;

/**
 * 使用枚举
 */
public enum Singleton_7 {

	SINGLETON;

	private DataSource dataSource = null;

	private Singleton_7() {
		this.dataSource = new DataSource();
	}

	public DataSource getDataSource() {
		return dataSource;
	}

}

class DataSource {

}
